var path = require("path");
var webpack = require("webpack");
module.exports = {

    entry: {
        // vendor: ["react"],
        app: path.resolve(__dirname, './example.js')
    },
    // entry: path.resolve(__dirname, './src/index.js'),//这里也可以直接写index.1.less，但是也会生成一个js文件
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'js/[name]-[chunkhash].js',
    },
    plugins: [
        new webpack.DllReferencePlugin({
            context: path.join(__dirname, "..", "dll"),
            manifest: require("../dll/js/alpha-manifest.json") // eslint-disable-line
        }),
        new webpack.DllReferencePlugin({
            context: path.join(__dirname, "..", "dll"),
            scope: "beta",
            manifest: require("../dll/js/beta-manifest.json"), // eslint-disable-line
            extensions: [".js", ".jsx"]
        })
    ]
};